package com.example.mqttdemo.entity.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TemperatureHumidity {
    private Long id;
    private String deviceId; // 设备ID
    private Double temperature; // 温度值
    private Double humidity; // 湿度值
    private Long timestamp; // 时间戳
    private LocalDateTime createdTime; // 创建时间
}
